/* @(#)GSDistinctBean.java    
 *
 * Project: BUS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-11    新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * 地区信息
 */
public class GSDistrictBean implements GSBaseBean {
	/**
	 * 地区代码
	 */
    private String gs_district_code;
    /**
     * 地区名称
     */
    private String gs_district_name;
    /**
     * 地区英文名称
     */
    private String gs_en_district_name;
    /**
     * 地区所属省
     */
    private String gs_province_code;
    /**
     * 返回gs_district_code.
     */
    public String getGs_district_code() {
        return this.gs_district_code;
    }


    /**
     * @param aGs_district_code     赋值给gs_district_code.
     */
    public void setGs_district_code(String aGs_district_code) {
        this.gs_district_code = aGs_district_code;
    }


    /**
     * 返回gs_district_name.
     */
    public String getGs_district_name() {
        return this.gs_district_name;
    }


    /**
     * @param aGs_district_name     赋值给gs_district_name.
     */
    public void setGs_district_name(String aGs_district_name) {
        this.gs_district_name = aGs_district_name;
    }


    /**
     * 返回gs_en_district_name.
     */
    public String getGs_en_district_name() {
        return this.gs_en_district_name;
    }


    /**
     * @param aGs_en_district_name     赋值给gs_en_district_name.
     */
    public void setGs_en_district_name(String aGs_en_district_name) {
        this.gs_en_district_name = aGs_en_district_name;
    }
    
    public Object process(ResultSet aResultSet) throws SQLException {
        GSDistrictBean tGSDistinctBean = new GSDistrictBean();
        
        tGSDistinctBean.gs_district_code = aResultSet.getString("GS_DISTRICT_CODE").trim();
        
        tGSDistinctBean.gs_district_name = aResultSet.getString("GS_DISTRICT_NAME").trim();
        
        tGSDistinctBean.gs_en_district_name = aResultSet.getString("GS_EN_DISTRICT_NAME") == null? "":aResultSet.getString("GS_EN_DISTRICT_NAME").trim();
        
        tGSDistinctBean.gs_province_code = aResultSet.getString("GS_PROVINCE_CODE").trim();
        
        return tGSDistinctBean;
    }


    /**
     * 返回gs_province_code.
     */
    public String getGs_province_code() {
        return this.gs_province_code;
    }


    /**
     * @param aGs_province_code     赋值给gs_province_code.
     */
    public void setGs_province_code(String aGs_province_code) {
        this.gs_province_code = aGs_province_code;
    }

}
